package com.wwmz.decorator.pattern.battercake.v2;

/**
 * Created by wumz on 2020/9/19 21:35
 */
public class Test {
    public static void main(String[] args) {
        Battercake battercake;

        battercake = new BaseBattercake();

        battercake = new EggDecorator(battercake);

        battercake = new EggDecorator(battercake);

        battercake = new SauageDecorator(battercake);

        System.out.println(battercake.getMsg() + ",总价" + battercake.getPrice());
    }
}
